home *** CD-ROM | disk | FTP | other *** search
- /*
- ReqFont() example
- */
-
- if ~show("L","rxasl.library") then
- if ~addLib("rxasl.library",0,-30) then
- say "can't find rxasl.library"
-
- a.FallBack = 1
- a.Dofrontpen = 1
- a.Dobackpen = 1
- a.Dodrawmode = 1
- a.Dostyle = 1
- a.Fixedwidthonly = 0
- a.Frontpen = 1
- a.Backpen = 0
- a.Name = "topaz"
-
- res=ReqFont(a)
- if res==0 then do
- say "Name: " a.Name
- say "Size: " d2x(a.Size)
- say "Styles: " d2x(a.Styles)
- say "Flags: " d2x(a.Flags)
- say "DrawMode:" d2x(a.DrawMode)
- say "FrontPen:" a.FrontPen
- say "BackPen: " a.BackPen
- end
- else if res~=-1 then say GetRxAslString(res) "(" || RXASLERROR || ")"
-